<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл eselectdoctype.ui.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>eselectdoctype.ui.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">** ui.h extension file, included from the uic-generated form implementation.</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** If you wish to add, delete or rename functions or slots use</span>
<a name="l00005"></a>00005 <span class="comment">** Qt Designer which will update this file, preserving your code. Create an</span>
<a name="l00006"></a>00006 <span class="comment">** init() function in place of a constructor, and a destroy() function in</span>
<a name="l00007"></a>00007 <span class="comment">** place of a destructor.</span>
<a name="l00008"></a>00008 <span class="comment">*****************************************************************************/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keywordtype">void</span> eSelectDocType::init()
<a name="l00011"></a>00011 {
<a name="l00012"></a>00012     listDocs-&gt;header()-&gt;hide();
<a name="l00013"></a>00013     listDocs-&gt;setColumnWidth( 0, 1000 );
<a name="l00014"></a>00014     listDocs-&gt;setFocus();
<a name="l00015"></a>00015 }
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="keywordtype">void</span> eSelectDocType::setJournal( <a class="code" href="classaCfg.html" title="Класс реализует програмный интерфейс доступа...">aCfg</a> *<a class="code" href="classaEngine.html#e48c52e2d8a714de10eab72ba89414bc">md</a>, <span class="keywordtype">int</span> <span class="keywordtype">id</span> )
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020     aCfgItem obj, dobj;
<a name="l00021"></a>00021     <span class="keywordtype">int</span> i, cnt, t, did;
<a name="l00022"></a>00022     QString name;
<a name="l00023"></a>00023     
<a name="l00024"></a>00024     listDocs-&gt;clear();
<a name="l00025"></a>00025     dlist.clear();
<a name="l00026"></a>00026     obj = md-&gt;<a class="code" href="classaCfg.html#570c476cd254d478fdc9ef2c8903cb7d">find</a>( <span class="keywordtype">id</span> );
<a name="l00027"></a>00027     <span class="keywordflow">if</span> ( !obj.isNull() ) {
<a name="l00028"></a>00028         dlist = md-&gt;<a class="code" href="classaCfg.html#89caa7556f2a15b4132753bd777eaf3a">getJournalDocuments</a>( obj );
<a name="l00029"></a>00029 <span class="comment">//      printf("docs=%s\n", ( const char *) dlist.join("\n") );</span>
<a name="l00030"></a>00030         <span class="keywordflow">for</span> (i=0;i&lt; dlist.count();i++) {
<a name="l00031"></a>00031             did = dlist[i].toInt();
<a name="l00032"></a>00032             dobj = md-&gt;<a class="code" href="classaCfg.html#570c476cd254d478fdc9ef2c8903cb7d">find</a>( did );
<a name="l00033"></a>00033             <span class="keywordflow">if</span> ( !dobj.isNull() ) {
<a name="l00034"></a>00034                 name = md-&gt;<a class="code" href="classaCfg.html#501c095e29f80c8c854cdfe716c82e33">attr</a>( dobj, mda_name );
<a name="l00035"></a>00035                 <span class="keyword">new</span> QListViewItem( listDocs, name, dlist[i] );
<a name="l00036"></a>00036             }
<a name="l00037"></a>00037         }
<a name="l00038"></a>00038         listDocs-&gt;setSelected( listDocs-&gt;firstChild(), true );
<a name="l00039"></a>00039     }
<a name="l00040"></a>00040 }
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keywordtype">void</span> eSelectDocType::accepted()
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045     docId = listDocs-&gt;selectedItem()-&gt;text(1).toInt();
<a name="l00046"></a>00046   <span class="comment">//  printf("docId=%i\n", docId );</span>
<a name="l00047"></a>00047     accept();
<a name="l00048"></a>00048 }
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
